package org.jivesoftware.smackx;

import java.util.List;
import org.jivesoftware.smackx.packet.MultipleAddresses;
import org.jivesoftware.smackx.packet.MultipleAddresses.Address;

public class MultipleRecipientInfo
{
  MultipleAddresses extension;

  MultipleRecipientInfo(MultipleAddresses paramMultipleAddresses)
  {
    this.extension = paramMultipleAddresses;
  }

  public List getCCAddresses()
  {
    return this.extension.getAddressesOfType("cc");
  }

  public MultipleAddresses.Address getReplyAddress()
  {
    MultipleAddresses.Address localAddress;
    List localList = this.extension.getAddressesOfType("replyto");
    if (localList.isEmpty())
      localAddress = null;
    while (true)
    {
      return localAddress;
      localAddress = (MultipleAddresses.Address)localList.get(0);
    }
  }

  public String getReplyRoom()
  {
    String str;
    List localList = this.extension.getAddressesOfType("replyroom");
    if (localList.isEmpty())
      str = null;
    while (true)
    {
      return str;
      str = ((MultipleAddresses.Address)localList.get(0)).getJid();
    }
  }

  public List getTOAddresses()
  {
    return this.extension.getAddressesOfType("to");
  }

  public boolean shouldNotReply()
  {
    int i;
    if (this.extension.getAddressesOfType("noreply").isEmpty())
      i = 0;
    while (true)
    {
      return i;
      i = 1;
    }
  }
}